#include <iostream>

int main()
{
	unsigned int digit;

	std::cin >> digit;

	std::cout.setf(std::ios_base::hex, std::ios_base::basefield);
	std::cout.setf(std::ios_base::uppercase);

	std::cout << digit;

	return 0;
}